package com.junction.util;

public enum keyCodeMyEnum {
    VALUE1(1,"鼠标左键"),
    VALUE2(2,"鼠标右键"),
    VALUE3(3,"Cancel"),
    VALUE4(4,"鼠标中键"),
    VALUE5(5,""),
    VALUE6(6,""),
    VALUE8(8,"Backspace"),
    VALUE9(9,"Tab"),
    VALUE12(12,"Clear"),
    VALUE13(13,"Enter"),
    VALUE16(16,"Shift"),
    VALUE17(17,"Ctrl"),
    VALUE18(18,"Alt"),
    VALUE19(19,"Pause"),
    VALUE20(20,"Caps Lock"),
    VALUE21(21,""),
    VALUE23(23,""),
    VALUE24(24,""),
    VALUE25(25,""),
    VALUE27(27,"Esc"),
    VALUE28(28,""),
    VALUE29(29,""),
    VALUE30(30,""),
    VALUE31(31,""),
    VALUE32(32,"Space"),
    VALUE33(33,"Page Up"),
    VALUE34(34,"Page Down"),
    VALUE35(35,"End"),
    VALUE36(36,"Home"),
    VALUE37(37,"Left Arrow"),
    VALUE38(38,"Up Arrow"),
    VALUE39(39,"Right Arrow"),
    VALUE40(40,"Down Arrow"),
    VALUE41(41,"Select"),
    VALUE42(42,"Print"),
    VALUE43(43,"Execute"),
    VALUE44(44,"Snapshot"),
    VALUE45(45,"Insert"),
    VALUE46(46,"Delete"),
    VALUE47(47,"Help"),
    VALUE48(48,"0"),
    VALUE49(49,"1"),
    VALUE50(50,"2"),
    VALUE51(51,"3"),
    VALUE52(52,"4"),
    VALUE53(53,"5"),
    VALUE54(54,"6"),
    VALUE55(55,"7"),
    VALUE56(56,"8"),
    VALUE57(57,"9"),
    VALUE65(65,"A"),
    VALUE66(66,"B"),
    VALUE67(67,"C"),
    VALUE68(68,"D"),
    VALUE69(69,"E"),
    VALUE70(70,"F"),
    VALUE71(71,"G"),
    VALUE72(72,"H"),
    VALUE73(73,"I"),
    VALUE74(74,"J"),
    VALUE75(75,"K"),
    VALUE76(76,"L"),
    VALUE77(77,"M"),
    VALUE78(78,"N"),
    VALUE79(79,"O"),
    VALUE80(80,"P"),
    VALUE81(81,"Q"),
    VALUE82(82,"R"),
    VALUE83(83,"S"),
    VALUE84(84,"T"),
    VALUE85(85,"U"),
    VALUE86(86,"V"),
    VALUE87(87,"W"),
    VALUE88(88,"X"),
    VALUE89(89,"Y"),
    VALUE90(90,"Z"),
    VALUE91(91,""),
    VALUE92(92,""),
    VALUE93(93,""),
    VALUE95(95,""),
    VALUE96(96,"小键盘 0"),
    VALUE97(97,"小键盘 1"),
    VALUE98(98,"小键盘 2"),
    VALUE99(99,"小键盘 3"),
    VALUE100(100,"小键盘 4"),
    VALUE101(101,"小键盘 5"),
    VALUE102(102,"小键盘 6"),
    VALUE103(103,"小键盘 7"),
    VALUE104(104,"小键盘 8"),
    VALUE105(105,"小键盘 9"),
    VALUE106(106,"小键盘 *"),
    VALUE107(107,"小键盘 +"),
    VALUE108(108,"小键盘 Enter"),
    VALUE109(109,"小键盘 -"),
    VALUE110(110,"小键盘 ."),
    VALUE111(111,"小键盘 /"),
    VALUE112(112,"F1"),
    VALUE113(113,"F2"),
    VALUE114(114,"F3"),
    VALUE115(115,"F4"),
    VALUE116(116,"F5"),
    VALUE117(117,"F6"),
    VALUE118(118,"F7"),
    VALUE119(119,"F8"),
    VALUE120(120,"F9"),
    VALUE121(121,"F10"),
    VALUE122(122,"F11"),
    VALUE123(123,"F12"),
    VALUE124(124,""),
    VALUE125(125,""),
    VALUE126(126,""),
    VALUE127(127,""),
    VALUE128(128,""),
    VALUE129(129,""),
    VALUE130(130,""),
    VALUE131(131,""),
    VALUE132(132,""),
    VALUE133(133,""),
    VALUE134(134,""),
    VALUE135(135,""),
    VALUE144(144,"Num Lock"),
    VALUE145(145,"Scroll"),
    VALUE160(160,""),
    VALUE161(161,""),
    VALUE162(162,""),
    VALUE163(163,""),
    VALUE164(164,""),
    VALUE165(165,""),
    VALUE166(166,""),
    VALUE167(167,""),
    VALUE168(168,""),
    VALUE169(169,""),
    VALUE170(170,""),
    VALUE171(171,""),
    VALUE172(172,""),
    VALUE173(173,"VolumeMute"),
    VALUE174(174,"VolumeDown"),
    VALUE175(175,"VolumeUp"),
    VALUE176(176,""),
    VALUE177(177,""),
    VALUE178(178,""),
    VALUE179(179,""),
    VALUE180(180,""),
    VALUE181(181,""),
    VALUE182(182,""),
    VALUE183(183,""),
    VALUE186(186,"; :"),
    VALUE187(187,"= +"),
    VALUE188(188,""),
    VALUE189(189,"- _"),
    VALUE190(190,""),
    VALUE191(191,"/ ?"),
    VALUE192(192,"` ~"),
    VALUE219(219,"[ {"),
    VALUE220(220,"\\ |"),
    VALUE221(221,"] }"),
    VALUE222(222,"' \""),
    VALUE223(223,""),
    VALUE226(226,""),
    VALUE231(231,""),
    VALUE229(229,""),
    VALUE246(246,""),
    VALUE247(247,""),
    VALUE248(248,""),
    VALUE249(249,""),
    VALUE250(250,""),
    VALUE251(251,""),
    VALUE252(252,""),
    VALUE253(253,""),
    VALUE254(254,"");


    private final int code;
    private final String name;

    keyCodeMyEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(int code) {
        for (keyCodeMyEnum value : keyCodeMyEnum.values()) {
            if (value.getCode() == code) {
                return value.getName();
            }
        }
        return String.valueOf(code); // 如果找不到相应的code，则返回null
    }

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }
}
